#ifndef PLAYER_HH_
# define PLAYER_HH_

# include <algorithm>
# include "building.hh"
# include  "unit.hh"

class Player
{
public:
  Player ();
  ~Player ();

  void add_building (Building* b) { b_list_.push_back (b); }
  void add_unit (Unit* u) { u_list_.push_back (u); }

  bool del_building (Building* b);
  bool del_unit (Unit* u);

  std::list<Building*>& building_list () { return b_list_; }
  std::list<Unit*>& unit_list () { return u_list_; }

protected:
  std::list<Building*> b_list_;
  std::list<Unit*> u_list_;
};

#endif /// !PLAYER_HH_
